package top.wu2020.lazy.ws.chat.infrastructure.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableIndex;
import org.wu.framework.core.stereotype.LayerField;
import org.wu.framework.core.stereotype.LayerField.LayerFieldType;
import org.wu.framework.lazy.orm.core.stereotype.LazyTable;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableField;
import org.wu.framework.lazy.orm.core.stereotype.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import java.lang.String;
import java.lang.Long;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableFieldId;
/**
 * describe history_session 
 *
 * @author Jia wei Wu
 * @date 2024/05/24 08:52 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity 
 **/
@Data
@Accessors(chain = true)
@LazyTable(tableName = "history_session",schema = "ws_chat",comment = "")
@Schema(title = "history_session",description = "")
public class HistorySessionDO {


    /**
     * 
     * 头像
     */
    @Schema(description ="头像",name ="avatar",example = "")
    @LazyTableField(name="avatar",comment="头像",columnType="varchar(500)")
    private String avatar;

    /**
     * 
     * 归属用户Id
     */
    @Schema(description ="归属用户Id",name ="byId",example = "")
    @LazyTableFieldUnique(name="by_id",comment="归属用户Id",notNull=true,columnType="bigint")
    private Long byId;

    /**
     * 
     * 邮箱
     */
    @Schema(description ="邮箱",name ="email",example = "")
    @LazyTableField(name="email",comment="邮箱",notNull=true,columnType="varchar(255)")
    private String email;

    /**
     * 
     * 来自用户Id
     */
    @Schema(description ="来自用户Id",name ="formId",example = "")
    @LazyTableFieldUnique(name="form_id",comment="来自用户Id",notNull=true,columnType="bigint")
    private Long formId;

    /**
     * 
     * Id，自增
     */
    @Schema(description ="Id，自增",name ="id",example = "")
    @LazyTableFieldId(name = "id", comment = "Id，自增")
    private Long id;

    /**
     * 
     * 手机号
     */
    @Schema(description ="手机号",name ="mobile",example = "")
    @LazyTableField(name="mobile",comment="手机号",columnType="varchar(255)")
    private String mobile;

    /**
     * 
     * 用户名
     */
    @Schema(description ="用户名",name ="name",example = "")
    @LazyTableField(name="name",comment="用户名",columnType="varchar(255)")
    private String name;

    /**
     * 
     * 昵称
     */
    @Schema(description ="昵称",name ="nickName",example = "")
    @LazyTableField(name="nick_name",comment="昵称",notNull=true,columnType="varchar(255)")
    private String nickName;

    /**
     * 
     * 个性签名
     */
    @Schema(description ="个性签名",name ="personalitySign",example = "")
    @LazyTableField(name="personality_sign",comment="个性签名",columnType="varchar(255)")
    private String personalitySign;

    /**
     * 
     * 地区
     */
    @Schema(description ="地区",name ="region",example = "")
    @LazyTableField(name="region",comment="地区",columnType="varchar(255)")
    private String region;

}